package com.hxy.service;

import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo;
import com.hxy.common.JsonResult;
import com.hxy.pojo.Branch;
import com.hxy.pojo.vo.BranchVo;

public interface BranchService {
    int deleteByPrimaryKey(Integer id);

    int insert(Branch record);

    int updateByPrimaryKey(Branch record);

    Branch selectByPrimaryKey(Integer id);

    PageInfo<BranchVo> selectAllPagerBranch(Integer page, int limit, String name, String phone, Integer branch);

    BranchVo selectOneBranchInfo(Integer id);

    int updateOneBranchInfo(BranchVo branchVo);

    String addOneBranchInfo(BranchVo branchVo);

    JsonResult checkAddForm(BranchVo branchVo, int checkflag);
}
